package com.exchange.repository;

import com.exchange.entity.GiftCardProduct;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GiftCardProductRepository extends JpaRepository<GiftCardProduct, Long> {
    List<GiftCardProduct> findByGiftCardId(Long giftCardId);
    List<GiftCardProduct> findByProductId(Long productId);
    void deleteByGiftCardId(Long giftCardId);
}